import { createRouter, createWebHistory } from 'vue-router';
import Home from './views/Home.vue';
import Login from './views/Login.vue';
import Chat from './views/Chat.vue';
import Register from './views/Register.vue';
import UserProfile from './views/UserProfile.vue';

const routes = [
    { path: '/', component: Home },
    { path: '/login', component: Login },
    { path: '/chat', component: Chat },
    { path: '/register', component: Register },
    { path: '/user-profile', component: UserProfile }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router; 